<template>
  <div>
    <div class="right-title">
      <span>活动公告</span>
    </div>
    <div class="block">
      <el-carousel trigger="click" height="377px" :interval="4000">
        <el-carousel-item v-for="item in images" :key="item.index">
          <img :src="item.url" alt="无图片"/>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script>
export default {
  name:"activityAnnouncement",

  data() {
    return{
      images: [
          { url: require("../../assets/img/1.jpg")},
          { url: require("../../assets/img/2.jpg")},
          { url: require("../../assets/img/3.jpg")},
        ],
    };
  },
  methods:{

  },
}
</script>
<style scoped>
  .right-title{
    height: 60px;
    width: 100%;
    background-color: #4880d3;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 2px 2px 2px #3a3939b3;
  }
  .right-title span{
    font-size:20px;
    line-height: 60px;
    font-weight: 450;
    color:#fff;
    margin-left: 4%;
  }
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
</style>